package com.uwlaser.service;

import com.uwlaser.base.PageInfo;
import com.uwlaser.base.CommonService;
import com.uwlaser.domain.CraftOperationDevice;
import com.uwlaser.service.dto.CraftOperationDeviceDto;
import com.uwlaser.service.dto.CraftOperationDeviceQueryParam;
import org.springframework.data.domain.Pageable;
import java.util.List;
import java.util.Set;

/**
* @author zk-Qin
* @date 2022-05-18
*/
public interface CraftOperationDeviceService extends CommonService<CraftOperationDevice>  {

    static final String CACHE_KEY = "craftOperationDevice";

    /**
    * 查询数据分页
    * @param query 条件
    * @param pageable 分页参数
    * @return PageInfo<CraftOperationDeviceDto>
    */
    PageInfo<CraftOperationDeviceDto> queryAll(CraftOperationDeviceQueryParam query, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param query 条件参数
    * @return List<CraftOperationDeviceDto>
    */
    List<CraftOperationDeviceDto> queryAll(CraftOperationDeviceQueryParam query);

    CraftOperationDevice getById(Integer id);
    CraftOperationDeviceDto findById(Integer id);

    /**
     * 插入一条新数据。
     */
    int insert(CraftOperationDeviceDto resources);
    int updateById(CraftOperationDeviceDto resources);
    int removeById(Integer id);
    int removeByIds(Set<Integer> ids);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    // void download(List<CraftOperationDeviceDto> all, HttpServletResponse response) throws IOException;
}
